package com.shiguiwu.springmybatis.spring.cycle;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @description: 单例bean
 * @author: stone
 * @date: Created by 2021/11/17 23:28
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.cycle
 */
@Component
@Scope("singleton")
public class SingletonBean {

    @Getter
    private PrototypeBean prototypeBean;

    @Autowired
    public void setPrototypeBean(PrototypeBean prototypeBean) {
        this.prototypeBean = prototypeBean;
    }
}
